package org.code.mallspringboot.service.impl;

import org.code.mallspringboot.mapper.CmsPrefrenceAreaProductRelationMapper;
import org.code.mallspringboot.pojo.CmsPrefrenceAreaProductRelation;
import org.code.mallspringboot.service.CmsPrefrenceAreaProductRelationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *
 */
@Service
public class CmsPrefrenceAreaProductRelationServiceImpl implements CmsPrefrenceAreaProductRelationService{

    @Autowired
    private CmsPrefrenceAreaProductRelationMapper cmsPrefrenceAreaProductRelationMapper;

    @Override
    public List<CmsPrefrenceAreaProductRelation> selectById(int id) {
        return cmsPrefrenceAreaProductRelationMapper.selectById(id);
    }

    @Override
    public int delete(int productId) {
        return cmsPrefrenceAreaProductRelationMapper.delete(productId);
    }

    @Override
    public int add(CmsPrefrenceAreaProductRelation cmsPrefrenceAreaProductRelation) {
        return cmsPrefrenceAreaProductRelationMapper.add(cmsPrefrenceAreaProductRelation);
    }
}




